#ifndef SERIALPORT_H
#define SERIALPORT_H

#include <QWidget>
#include "serial.h"

namespace Ui {
class SerialPort;
}

class SerialPort : public QWidget
{
    Q_OBJECT

public slots:
    void slotReadyRead(quint8 c);

public:
    explicit SerialPort(QWidget *parent = 0);
    ~SerialPort();

private:
    Ui::SerialPort *ui;

    Serial *m_serial;

private slots:
    void on_pb_open_com_clicked();
    void on_pb_send_clicked();
    void on_pb_clear_clicked();


};

#endif // SERIALPORT_H
